//package com.twp.auth.repository.auth;
//
//import com.twp.auth.domain.authority.RoleUser;
//import org.springframework.data.jpa.repository.JpaRepository;
//import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
//import org.springframework.data.jpa.repository.Modifying;
//import org.springframework.data.jpa.repository.Query;
//import org.springframework.stereotype.Repository;
//
//import java.util.List;
//
//@Repository
//public interface RoleUserRepository extends JpaRepository<RoleUser, Integer>, JpaSpecificationExecutor<RoleUser> {
//
//    @Modifying
//    @Query(value = "delete from RoleUser c where c.uid = ?1")
//    void deleteByUid(Integer uid);
//
//    @Modifying
//    @Query(value = "delete from RoleUser c where c.roleId = ?1")
//    void deleteByRoleId(Integer rid);
//
//    List<RoleUser> findByUid(int userId);
//}
